package dataset;

import java.util.ArrayList;

import org.w3c.dom.Node;

import triples.Triple;

public class DataEntry {
	private Triple tri;
	public String relation;
	public ArrayList<String> dates;
	public ArrayList<String> related;
	
	public DataEntry(Triple tri, String relation, ArrayList<String> dates, ArrayList<String> related){
		this.tri = tri;
		this.relation = relation;
		this.dates = dates;
		this.related = related;
	}
	
	public Triple getTriple(){
		return this.tri;
	}
	public String getOri_sentence(){
		return tri.getOri_sentence();
	}
	
	public String getNew_sentence(){
		return tri.getNew_sentence();
	}
	
	public String getSentence(){
		return tri.getSentence();
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		
		sb.append("SON_SEN:"+this.getSentence()+"\n");
		sb.append("NER_SEN:"+this.getNew_sentence()+"\n");
		sb.append("ORI_SEN:"+this.getOri_sentence()+"\n");
		sb.append(("relation:"+this.relation+"\n"));
		sb.append("Relations:");
		for( int i =0; i<this.dates.size();i++){
			sb.append((i+1)+"[DATE:"+this.dates.get(i)+",REL:"+this.related.get(i)+"]");
			sb.append("\t");
		}
		sb.append("\n");
		sb.append("*****************\n");
		return sb.toString();
		
	}
}
